<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2019-11-27
 * Time: 10:13
 */

namespace app\api\controller;


use think\Controller;
use app\api\service\Token as TokenService;

class BaseController extends Controller
{
    //用户和管理员都可以访问的接口权限
    protected function checkPrimaryScope()
    {
        TokenService::needPrimaryScope();
    }

    //只有用户可以访问的接口权限
    protected function checkExclusiveScope()
    {
        TokenService::needExclusiveScope();
    }


    // 判断是否是会员
    protected function checkMember()
    {
        TokenService::checkMember();
    }
}